package com.example.unisys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.unisys.entity.Ip;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Repository
public interface IpMapper extends BaseMapper<Ip> {

     List<Ip> getIps(@Param("start") int start ,@Param("pagesize") int pagesize);

     Integer getIpSum();


     int insertSelective(Ip ip);

     int delete(int ip_id);

     List<Ip> getBySchool(HashMap<String,Object> map);

     Integer getBySchoolSum(Map map);

     int forbidIP(int ip_id);

     int startIP(int ip_id);

     List<Ip> getAllowedIp(Map<String,Object> map);
}
